package com.belf.console.domain;

import com.belf.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 迁移报告对象详情对象 data_report_object
 * 
 * @author belf
 * @date 2024-08-21
 */
@Data
@EqualsAndHashCode(callSuper=false)
public class DataReportObject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
   
    private Long jobId;

    /** $column.columnComment */
   
    private Long taskId;

    private Long infoId;

    /** $column.columnComment */
   
    private String sourceObjectName;

    /** $column.columnComment */
   
    private String sinkObjectName;

    /** $column.columnComment */
   
    private Long code;

    /** $column.columnComment */
   
    private String message;

    /** $column.columnComment */
   
    private String errors;

    /** $column.columnComment */
   
    private String sourceDdl;

    /** $column.columnComment */
   
    private String sinkDdl;

    /** $column.columnComment */
   
    private String type;

    /** $column.columnComment */
   
    private String startTime;

    /** $column.columnComment */
   
    private String endTime;

    /** $column.columnComment */
   
    private String errorTips;

    public DataReportObject(Long jobId, Long taskId, Long infoId) {
        this.infoId=infoId;
        this.jobId=jobId;
        this.taskId=taskId;
    }
    public DataReportObject(){

    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("jobId", getJobId())
            .append("taskId", getTaskId())
            .append("sourceName", getSourceObjectName())
            .append("sinkName", getSinkObjectName())
            .append("code", getCode())
            .append("message", getMessage())
            .append("errors", getErrors())
            .append("sourceDdl", getSourceDdl())
            .append("sinkDdl", getSinkDdl())
            .append("type", getType())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("errorTips", getErrorTips())
            .toString();
    }
}
